package com.ruoyi.admin.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者列表查询对象 patient
 * 
 * @author Kpendragon
 * @date 2023-01-10
 */
public class Patient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者id主键 */
    private Long id;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String pName;

    /** 患者卡号 */
    @Excel(name = "患者卡号")
    private Long pNo;

    /** 患者年龄 */
    @Excel(name = "患者年龄")
    private Long pAge;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pStartDate;

    /** 患者性别 */
    @Excel(name = "患者性别")
    private Long pSex;

    /** 患者手机号 */
    @Excel(name = "患者手机号")
    private Long pPhone;

    /** 患者身份证 */
    @Excel(name = "患者身份证")
    private String pCard;

    /** 省份/市区 */
    @Excel(name = "省份/市区")
    private String pProvince;

    /** 县/镇/区 */
    @Excel(name = "县/镇/区")
    private String pPlace;

    /** 备注 */
    @Excel(name = "备注")
    private String pArea;

    @Excel(name = "接诊状态")
    private Integer status;

    @Excel(name = "医生")
    private String sName;

    @Excel(name = "科室")
    private String dDepartment;

    /** 查询关联家属信息 */
    private List<TPatientFamily> tPatientFamilyList;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String getdDepartment() {
        return dDepartment;
    }

    public void setdDepartment(String dDepartment) {
        this.dDepartment = dDepartment;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setpNo(Long pNo) 
    {
        this.pNo = pNo;
    }

    public Long getpNo() 
    {
        return pNo;
    }
    public void setpAge(Long pAge) 
    {
        this.pAge = pAge;
    }

    public Long getpAge() 
    {
        return pAge;
    }
    public void setpStartDate(Date pStartDate) 
    {
        this.pStartDate = pStartDate;
    }

    public Date getpStartDate() 
    {
        return pStartDate;
    }
    public void setpSex(Long pSex) 
    {
        this.pSex = pSex;
    }

    public Long getpSex() 
    {
        return pSex;
    }
    public void setpPhone(Long pPhone) 
    {
        this.pPhone = pPhone;
    }

    public Long getpPhone() 
    {
        return pPhone;
    }
    public void setpCard(String pCard) 
    {
        this.pCard = pCard;
    }

    public String getpCard() 
    {
        return pCard;
    }
    public void setpProvince(String pProvince) 
    {
        this.pProvince = pProvince;
    }

    public String getpProvince() 
    {
        return pProvince;
    }
    public void setpPlace(String pPlace) 
    {
        this.pPlace = pPlace;
    }

    public String getpPlace() 
    {
        return pPlace;
    }
    public void setpArea(String pArea) 
    {
        this.pArea = pArea;
    }

    public String getpArea() 
    {
        return pArea;
    }

    public List<TPatientFamily> getTPatientFamilyList()
    {
        return tPatientFamilyList;
    }

    public void setTPatientFamilyList(List<TPatientFamily> tPatientFamilyList)
    {
        this.tPatientFamilyList = tPatientFamilyList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pName", getpName())
            .append("pNo", getpNo())
            .append("pAge", getpAge())
            .append("pStartDate", getpStartDate())
            .append("pSex", getpSex())
            .append("pPhone", getpPhone())
            .append("pCard", getpCard())
            .append("pProvince", getpProvince())
            .append("pPlace", getpPlace())
            .append("pArea", getpArea())
            .append("createTime", getCreateTime())
            .toString();
    }
}
